import api from "../../utils/api/api";

// components/activity/activity.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    list: {
      type: Array,
      value: []
    },
    type: {
      type: Number,
      value: 0
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    list:[],
    actity:['报名成功','拼团成功','拼团中','待支付','审核中','拼团失败','审核未通过']
  },

  /**
   * 组件的方法列表
   */
  methods: {
    skip(e){
      let id = e.currentTarget.dataset.id;
      let aid = e.currentTarget.dataset.aid;
      let pink_id  = e.currentTarget.dataset.pink_id ;
      let index = e.currentTarget.dataset.index;
      this.triggerEvent('skip',{id,aid,pink_id,index})
    },
    go(e){
      console.log(e);
      let type = e.currentTarget.dataset.type;  
      let index =  e.currentTarget.dataset.index;  
      this.triggerEvent('go',{type,index})
    },
     // 授权手机号回调
  getUserInfoCallback(e) {
    if (e.detail.status) {
      let id = this.data.list[0].id;
      wx.navigateTo({
        url: `/pages/pages-list/huizhan-details/huizhan-details?id=${id}`
      })
    }

  },
  },
  
})
